package hfjava;

import java.util.Scanner;

public class YunSuan_Test {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("请输入第一个数字");
        YunSuan one= new YunSuan();
        one.num1=input.nextInt();
        System.out.println("请输入第一个数字");
        one.num2=input.nextInt();
        System.out.println("请输入符号");
        one.operator =input.next().charAt(0);
       int finalResult= one.figure();
       System.out.println("结果为："+finalResult);
    }
}
